#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Project : MyBookStore
# @Time    : 2021/8/4 16:39
# @Author  : wp
# @File    : code_tools.py
# @Software: PyCharm

from app.models import User

for key,val in User.__dict__.items():
    assert  isinstance(key,str)
    if not key.startswith("_") and key!='to_dict':
        # print('{}={}'.format(key,val))
        print("'{}':self.{},".format(key,key))